package tcln.sors.client.core.mvc;

/**
 * All standard controller types.
 * 
 * @author Truong Chau Lien Ngoc (lienngoc@gmail.com)
 */
public enum StandardControllerType {

    /**
     * type: list of models.
     */
    LIST("list"),

    /**
     * type: list of models including search panel.
     */
    SEARCH("search"),

    /**
     * type: detail of a model.
     */
    DETAIL("detail"),

    /**
     * type: controller for the main page.
     */
    MAIN_PAGE("main");

    private String value;

    private StandardControllerType(String value) {
        this.value = value;
    }

    /**
     * Returns current value of {@link #value}.
     * 
     * @return the {@link #value}.
     */
    public String getValue() {
        return value;
    }
}
